package com.dg.acb.utils;

public class NBStringBuilder {
    private final StringBuilder mBuilder;

    public NBStringBuilder() {
        mBuilder = new StringBuilder();
    }

    public NBStringBuilder(int size) {
        mBuilder = new StringBuilder(size);
    }

    public NBStringBuilder append(int value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(long value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(double value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(String value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(char value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(CharSequence value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(Object value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(StringBuilder value) {
        mBuilder.append(value);
        return this;
    }

    public NBStringBuilder append(NBStringBuilder value) {
        mBuilder.append(value.mBuilder);
        return this;
    }
}
